<?php 

class Model_Repository_Help extends Zend_Db_Table {
	protected $_name = 'help';
	
	public function fetchItemsSelect($sort, $sortdir) {
		
		$select = $this->select();
		$select -> order($sort.' '.$sortdir);
		
		return $select;
	}
	
	public function fetchItemForEdit($id) {
		$items = $this->find($id);
		if (count($items)) {
			$item = $items->current()->toArray();
			return $item;
		}
		return false;
	}
	
}